package com.lyz.extendsdemo;

/**
 * @ClassName GameDemo
 * @Description TODO
 * @Author 2214361854
 * @Date 2022/2/18 10:41
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Student s = new Student();
        s.setName("小明");
        s.setAge(15);
        s.setClassName("设计班");
        System.out.println(s.getName());
        System.out.println(s.getAge());
        s.study();
        s.queryCourse();
        System.out.println("=========");
        Teacher t = new Teacher();
        t.setName("王老师");
        t.setAge(30);
        t.setDepartmentName("教育部");
        t.queryCourse();
        t.teach();
    }
}
